package curves.gui;

import javax.swing.JPopupMenu;
import curves.Surface;

public abstract class AbstractSurfaceMenu  extends JPopupMenu {


    private Surface surface;
    private double x, y;
    protected Window frame;

    public AbstractSurfaceMenu(Window frame){
        this.frame = frame;
    }

    public void setDestCoords(double x, double y) {
        this.x = x;
        this.y = y;
    }

    public void setSurface(Surface surface) {
        this.surface = surface;
    }

    public Surface getSurface() {
        return surface;
    }

    public double getDestX(){
        return x;
    }

    public double getDestY(){
        return y;
    }

}
